#include "apilib.h"

void HariMain(void)
{
    char *buf;
    int win, i;
    api_initmalloc();
    buf = api_malloc(160 * 100);
    win = api_win_create(buf, 160, 100, -1, "lines");
    for (i = 0; i < 8; i++)
    {
        api_win_line(win + 1, 8, 26, 77, i * 9 + 26, i);
        api_win_line(win + 1, 88, 26, i * 9 + 88, 89, i);
    }
    api_win_refrsh(win, 6, 26, 154, 90);
    for (;;)
    {
        if (api_getkey(1) == 0x0a)
            break;
    }
    api_win_delete(win);
    api_exit();
}
